#!/bin/bash

chmod 777 ./pactool
./pactool make_pac_image_no_gpt --output ospi.pac \
--allow_empty_partitions \
--product E3640 \
--preload sfs:temp/sfs.bin \
--preload rfd:temp/rfd.bin \
--preload boot0:temp/ssdk_signed.bin \
--preload boot1:temp/ssdk_signed.bin \
--image 0x181000:temp/0x181000.bin \
--image 0x488000:temp/0x181000.bin \
--da FDA:temp/dloader.bin